<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Interpréteur:  Fichier source de LecteurPhraseAvecArbre.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>LecteurPhraseAvecArbre.h</h1>  </div>
</div>
<div class="contents">
<a href="LecteurPhraseAvecArbre_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef LECTEURPHRASEAVECARBRE_H_</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define LECTEURPHRASEAVECARBRE_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="Symbole_8h.html">Symbole.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="LecteurSymbole_8h.html">LecteurSymbole.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="TableSymboles_8h.html">TableSymboles.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="Arbre_8h.html">Arbre.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="ErreurEx_8h.html">ErreurEx.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">using namespace </span>std;
<a name="l00021"></a><a class="code" href="classLecteurPhraseAvecArbre.html">00021</a> <span class="keyword">class </span><a class="code" href="classLecteurPhraseAvecArbre.html">LecteurPhraseAvecArbre</a> : <span class="keyword">public</span> <a class="code" href="classErreurEx.html">ErreurEx</a> {
<a name="l00022"></a>00022 <span class="keyword">public</span>:
<a name="l00028"></a>00028     <a class="code" href="classLecteurPhraseAvecArbre.html">LecteurPhraseAvecArbre</a>(<span class="keywordtype">string</span> nomFich); <span class="comment">// </span>
<a name="l00029"></a>00029 
<a name="l00037"></a>00037     <span class="keywordtype">void</span> analyse(); 
<a name="l00038"></a>00038 
<a name="l00043"></a><a class="code" href="classLecteurPhraseAvecArbre.html#a14e9f9598948df424aec947ac2d4d4e2">00043</a>     <span class="keyword">inline</span> <a class="code" href="classTableSymboles.html">TableSymboles</a> <a class="code" href="classLecteurPhraseAvecArbre.html#a14e9f9598948df424aec947ac2d4d4e2" title="Retourne la Table des Symboles.">getTs</a>() {<span class="keywordflow">return</span> ts;}   
<a name="l00044"></a>00044 
<a name="l00051"></a><a class="code" href="classLecteurPhraseAvecArbre.html#a96f0fcf26681d79ba3c4f0458dc4dd40">00051</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classLecteurPhraseAvecArbre.html#a96f0fcf26681d79ba3c4f0458dc4dd40" title="Affecte la Tables des Symboles Méthode permettant d&amp;#39;affecter la table des symboles courantes par ...">setTableSymboles</a>(<a class="code" href="classTableSymboles.html">TableSymboles</a> table) {this-&gt;ts = table;}
<a name="l00052"></a>00052 
<a name="l00057"></a><a class="code" href="classLecteurPhraseAvecArbre.html#aeacb7c5e208f8744ddf6ca2336c26508">00057</a>     <span class="keyword">inline</span> <a class="code" href="classNoeud.html">Noeud</a>* <a class="code" href="classLecteurPhraseAvecArbre.html#aeacb7c5e208f8744ddf6ca2336c26508" title="Retourne l&amp;#39;Arbre.">getArbre</a>() {<span class="keywordflow">return</span> arbre;} <span class="comment">// accesseur</span>
<a name="l00058"></a>00058 
<a name="l00063"></a><a class="code" href="classLecteurPhraseAvecArbre.html#a0ece720e0dabc523aedf08357b7ec4c4">00063</a>     <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classLecteurPhraseAvecArbre.html#a0ece720e0dabc523aedf08357b7ec4c4" title="Retourne l&amp;#39;entier correspondant au nombre d&amp;#39;erreur dans le programme.">getNbErreur</a>() {<span class="keywordflow">return</span> this-&gt;nbErreur;}
<a name="l00064"></a>00064 
<a name="l00070"></a>00070     vector&lt;string&gt; generationAda();
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">private</span>:
<a name="l00073"></a>00073     <span class="comment">/*!/var LeucteurSymbole ls</span>
<a name="l00074"></a>00074 <span class="comment">     * \brief Le lecteur de symboles utilisé pour analyser le fichier</span>
<a name="l00075"></a>00075 <span class="comment">     */</span>
<a name="l00076"></a>00076     <a class="code" href="classLecteurSymbole.html">LecteurSymbole</a> ls;
<a name="l00077"></a>00077     <span class="comment">/*/var TableSymboles ts</span>
<a name="l00078"></a>00078 <span class="comment">     * \brief La table des symboles valués</span>
<a name="l00079"></a>00079 <span class="comment">     */</span>
<a name="l00080"></a>00080     <a class="code" href="classTableSymboles.html">TableSymboles</a> ts;
<a name="l00084"></a>00084     <a class="code" href="classNoeud.html">Noeud</a>* arbre;
<a name="l00088"></a>00088     <span class="keywordtype">int</span> nbErreur;    
<a name="l00089"></a>00089 
<a name="l00096"></a>00096     <a class="code" href="classNoeud.html">Noeud</a>* programme();
<a name="l00097"></a>00097     
<a name="l00102"></a>00102     <a class="code" href="classNoeud.html">Noeud</a>* seqInst();
<a name="l00103"></a>00103     
<a name="l00109"></a>00109     <a class="code" href="classNoeud.html">Noeud</a>* inst();  
<a name="l00110"></a>00110     
<a name="l00115"></a>00115     <a class="code" href="classNoeud.html">Noeud</a>* affectation(); 
<a name="l00116"></a>00116     
<a name="l00121"></a>00121     <a class="code" href="classNoeud.html">Noeud</a>* expression();
<a name="l00122"></a>00122     
<a name="l00127"></a>00127     <a class="code" href="classNoeud.html">Noeud</a>* facteur();
<a name="l00128"></a>00128     
<a name="l00133"></a>00133     <a class="code" href="classNoeud.html">Noeud</a>* relation(); 
<a name="l00134"></a>00134     
<a name="l00139"></a>00139     <a class="code" href="classNoeud.html">Noeud</a>* expBool();
<a name="l00140"></a>00140     
<a name="l00145"></a>00145     <a class="code" href="classSymbole.html">Symbole</a> opRel();
<a name="l00146"></a>00146     
<a name="l00151"></a>00151     <a class="code" href="classSymbole.html">Symbole</a> opUnaire();
<a name="l00152"></a>00152     
<a name="l00157"></a>00157     <a class="code" href="classSymbole.html">Symbole</a> opEt(); 
<a name="l00158"></a>00158     
<a name="l00163"></a>00163     <a class="code" href="classSymbole.html">Symbole</a> opOu();
<a name="l00164"></a>00164     
<a name="l00169"></a>00169     <a class="code" href="classNoeud.html">Noeud</a>* terme();
<a name="l00170"></a>00170     
<a name="l00175"></a>00175     <a class="code" href="classSymbole.html">Symbole</a> opAdd();
<a name="l00176"></a>00176     
<a name="l00181"></a>00181     <a class="code" href="classSymbole.html">Symbole</a> opMult();
<a name="l00182"></a>00182     
<a name="l00187"></a>00187     <a class="code" href="classNoeud.html">Noeud</a>* instSi();
<a name="l00188"></a>00188     
<a name="l00193"></a>00193     <a class="code" href="classNoeud.html">Noeud</a>* instTq();
<a name="l00194"></a>00194     
<a name="l00199"></a>00199     <a class="code" href="classNoeud.html">Noeud</a>* instRepeter();
<a name="l00200"></a>00200     
<a name="l00205"></a>00205     <a class="code" href="classNoeud.html">Noeud</a>* instLire();
<a name="l00206"></a>00206     
<a name="l00211"></a>00211     <a class="code" href="classNoeud.html">Noeud</a>* instEcrire();
<a name="l00212"></a>00212     
<a name="l00217"></a>00217     <a class="code" href="classNoeud.html">Noeud</a>* instPour();    
<a name="l00218"></a>00218 
<a name="l00219"></a>00219     <span class="comment">// outils pour se simplifier l&#39;analyse syntaxique</span>
<a name="l00225"></a>00225 <span class="comment"></span>    <span class="keywordtype">void</span> testerSymCour(<span class="keywordtype">string</span> ch);
<a name="l00231"></a>00231     <span class="keywordtype">void</span> sauterSymCour(<span class="keywordtype">string</span> ch);
<a name="l00237"></a>00237     <span class="keywordtype">void</span> erreur(<span class="keywordtype">string</span> mess);
<a name="l00238"></a>00238 };
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="preprocessor">#endif </span><span class="comment">/* LECTEURPHRASEAVECARBRE_H_ */</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Amis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jan 5 2012 10:30:28 pour Interpréteur par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
